package com.hugo.maomi_first.zhuanti.model;

import com.hugo.maomi_first.api.ApiStore;
import com.hugo.maomi_first.bean.ZhuanTiBean;
import com.hugo.maomi_first.bean.ZhuanTiDetailBean;
import com.hugo.maomi_first.bean.ZhuanTiHeaderBean;

import retrofit2.Callback;

/**
 * Created by Administrator on 2016/7/5.
 */
public class ZhuanTiModelImpl implements ZhuanTiModel {
    @Override
    public void getHeaderData(Callback<ZhuanTiHeaderBean> callback) {
        ApiStore.getInstance()
                .getApiService()
                .getZhuanTiHeaderData()
                .enqueue(callback);
    }

    @Override
    public void getDetailData(int pager, Callback<ZhuanTiBean> callback) {
        ApiStore.getInstance()
                .getApiService()
                .getZhuanTiData(pager)
                .enqueue(callback);
    }

    @Override
    public void getZhuanTiDetailData(int id,Callback<ZhuanTiDetailBean> callback) {
        ApiStore.getInstance()
                .getApiService()
                .getZhuanTiDetailData(id)
                .enqueue(callback);
    }
}
